﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class JobBLL
    {
        JobDAO fdo = new JobDAO();
        public JobBLL() { }
        public bool Add(Job down)
        {
            return fdo.Add(down);
        }
        public Job GetJobById(int id)
        {
            return fdo.GetJobById(id);
        }
        public IList<Job> GetAllJob()
        {
            return fdo.GetAllJob();
        }
        public bool ModifyJob(Job down)
        {
            return fdo.ModifyJob(down);
        }
        public bool DeleteJobById(int id)
        {
            return fdo.DeleteJobById(id);
        }
        /// <summary>
        /// 根据类别查询集合
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public IList<Job> GetJobByTypeId(int pageSize, int currentIndex)
        {
            return fdo.GetJobByUserId(pageSize, currentIndex);
        }
        public int GetTotal()
        {
            return fdo.GetTotal();
        }
        public IList<Job> GetJobByType()
        {
            return fdo.GetJobByType();
        }
    }
}
